package com.kangyi.admin.mapper;

import com.kangyi.vo.NursingHomeReviewImageVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Blank
 * @version 1.0
 */
@Mapper
public interface ReviewImageMapper {

    @Select("select * from nursing_home_review_image where nursing_home_review_id = #{reviewId}")
    List<NursingHomeReviewImageVO> getByReviewId(Integer reviewId);

    @Delete("delete from nursing_home_review_image where nursing_home_review_id = #{reviewId};")
    void deleteById(Integer reviewId);
}
